<?php
	class Category_model extends CI_Model {
	    
    var $id;	
	var $title;	

    function __construct()
    {
        // Call the Model constructor
        parent::__construct();
    }


    function getRecords()
    {
    	$this->db->select('*');
    	$this->db->from('category');

    	$query = $this->db->get();
    	return $query->result();
    }
}